<template>
  <view>
    <view class="followWxAccount" @tap="followWxAccount">
      <image
        class="img"
        src="@/static/images/home/follow_wxAccount.png"
      ></image>
      <view class="title">关注库课云公众号，实时接收服务消息</view>
      <image class="arrow" src="@/static/images/home/follow_arrow.png"></image>
    </view>
    <FollowWxAccountDialog :show="show" @close="show = false" />
  </view>
</template>

<script setup lang="ts">
import { ref } from "vue";
import FollowWxAccountDialog from "./followWxAccountDialog.vue";

const show = ref(false);

const followWxAccount = () => {
  uni.hideTabBar();
  show.value = true;
};
</script>

<style lang="scss" scoped>
.followWxAccount {
  width: calc(100vw - 48rpx);
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 108rpx;
  background: linear-gradient(90deg, #ffffff 0%, #f7fbff 100%);
  border-radius: 16rpx 16rpx 16rpx 16rpx;
  // border: 2rpx solid;
  border-image: linear-gradient(
      90deg,
      rgba(238, 245, 255, 1),
      rgba(255, 255, 255, 1)
    )
    2 2;
  margin-left: 24rpx;
  margin-right: 24rpx;
  margin-bottom: 24rpx;

  .img {
    margin-left: 24rpx;
    width: 48rpx;
    height: 48rpx;
  }
  .title {
    padding-left: 16rpx;
    padding-right: 12rpx;
    font-size: 28rpx;
    color: #386ef5;
    line-height: 34rpx;
  }

  .arrow {
    width: 36rpx;
    height: 36rpx;
    margin-left: auto;
    margin-right: 24rpx;
  }
}
</style>
